package org.jeecg.modules.sistersophie.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @Description: course_info
 * @Author: jeecg-boot
 * @Date:   2021-06-04
 * @Version: V1.0
 */
@Data
@TableName("course_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="course_info对象", description="course_info")
public class CourseInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
	/**分类编码*/
	@Excel(name = "分类编码", width = 15)
    @ApiModelProperty(value = "分类编码")
    private String categoryCode;
	/**分类名称*/
	@Excel(name = "分类名称", width = 15)
    @ApiModelProperty(value = "分类名称")
    private String categoryName;
	/**课程名称*/
	@Excel(name = "课程名称", width = 15)
    @ApiModelProperty(value = "课程名称")
    private String name;
	/**课程类型 1=1v1课程 2=group class*/
	@Excel(name = "课程类型 1=1v1课程 2=group class", width = 15)
    @ApiModelProperty(value = "课程类型 1=1v1课程 2=group class")
    @Dict(dicCode = "courseType")
    private Integer courseType;

    /**课程子类型 1=1v1  2= 2v2 3=3v3 4=4v4*/
    @Excel(name = "课程子类型 1=1v1  2= 2v2 3=3v3 4=4v4", width = 15)
    @ApiModelProperty(value = "课程子类型")
    @Dict(dicCode = "courseSubType")
    private Integer courseSubType;

	/**年级*/
	@Excel(name = "年级", width = 15)
    @ApiModelProperty(value = "年级")
    private String grade;
	/**老师ID*/
	@Excel(name = "老师ID", width = 15)
    @ApiModelProperty(value = "老师ID")
    @NotNull(message = "Teacher information cannot be empty")
    private Integer teacherId;

    @TableField(exist = false)
    private String teacherIds;

	/**老师姓氏*/
	@Excel(name = "老师姓氏", width = 15)
    @ApiModelProperty(value = "老师姓氏")
    @NotNull(message = "Teacher information cannot be empty")
    private String teacherFirstName;
	/**老师名称*/
	@Excel(name = "老师名称", width = 15)
    @ApiModelProperty(value = "老师名称")
    @NotNull(message = "Teacher information cannot be empty")
    private String teacherLastName;

	@TableField(exist = false)
	private String tearcherName;

    @TableField(exist = false)
    private String year;

    @TableField(exist = false)
    private String enrollment;

	/**学期*/
	@Excel(name = "学期", width = 15)
    @ApiModelProperty(value = "学期")
    private String term;
	/**课时*/
	@Excel(name = "课时", width = 15)
    @ApiModelProperty(value = "课时")
    private Double hours;
	/**价格*/
	@Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "价格")
    private BigDecimal price;

	@TableField(exist = false)
	private String priceFormat;

    @Excel(name = "币种", width = 15)
    @ApiModelProperty(value = "币种")
	private String currency;

	/**开始时间*/
	@Excel(name = "开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;
	/**结束时间*/
	@Excel(name = "结束时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;
	/**最大学生*/
	@Excel(name = "最大学生", width = 15)
    @ApiModelProperty(value = "最大学生")
    private Integer maxStudent;
	/**授课类型*/
	@Excel(name = "授课类型", width = 15)
    @ApiModelProperty(value = "授课类型")
    private String classType;
	/**删除标志 0=未删除，1=已删除*/
	@Excel(name = "删除标志 0=未删除，1=已删除", width = 15)
    @ApiModelProperty(value = "删除标志 0=未删除，1=已删除")
    private Integer isDelete;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createName;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
    private String updateName;

    private String classSite;

    private String memo;

}
